package com.useeinfo.oa.modules.wuHanCommon.base.entity;

import com.useeinfo.framework.extend.entity.SuperClassEntity;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "wuhan_automatic_day_data")
public class AutomaticDayData extends SuperClassEntity<AutomaticDayData> {

    /**
     * 值
     */
    private String value;
    /**
     * 所属哪个抄表
     */
    @ManyToOne
    @JoinColumn(name = "automatic_model_id")
    private AutomaticModel automaticModel;
    /**
     * 时间
     */
    @Temporal(TemporalType.DATE)
    private Date nowTime;
    /**
     * 时间点
     */
    private Integer timePoint;
    /**
     * 是否异常
     */
    private boolean isAbnormal;


    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public AutomaticModel getAutomaticModel() {
        return automaticModel;
    }

    public void setAutomaticModel(AutomaticModel automaticModel) {
        this.automaticModel = automaticModel;
    }

    public Date getNowTime() {
        return nowTime;
    }

    public void setNowTime(Date nowTime) {
        this.nowTime = nowTime;
    }

    public Integer getTimePoint() {
        return timePoint;
    }

    public void setTimePoint(Integer timePoint) {
        this.timePoint = timePoint;
    }

    public boolean isAbnormal() {
        return isAbnormal;
    }

    public void setAbnormal(boolean abnormal) {
        isAbnormal = abnormal;
    }
}
